package com.cm.study.spring.cyclic.di;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
@Service
public class Service2 {
    private Service1 service1;
    @Autowired
    public Service2(@Lazy Service1 service1){
        this.service1 = service1;
    }

    public void doService1(){
        service1.executeService2();
    }
}
